<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>列表</title>
    <head th:include="includes :: header"></head>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>列表</h5>
        </div>
        <div class="ibox-content">
            <div class="panel panel-default">
                <div class="panel-heading">
                    查询列表
                </div>
                <div class="panel-body form-group" style="margin-bottom:0px;">
                    <label class="col-sm-1 control-label" style=" margin-top:5px">创建时间</label>
                    <div class="col-sm-2" >
                        <input type="text" class="form-control" placeholder="请选择时间范围"   name="createTime" id="test_2"/>
                    </div>
                    <label class="col-sm-1 control-label" style=" margin-top:5px">读者姓名</label>
                    <div class="col-sm-2"  >
                        <input type="text" class="form-control" placeholder="请输入读者姓名"  name="readUserName" id="readUserName__"/>
                    </div>
                    <label class="col-sm-1 control-label"  style=" margin-top:5px;">读者卡号</label>
                    <div class="col-sm-2" >
                        <input type="number" class="form-control" placeholder="请输入读者卡号" style="" name="readUserCardNum" id="readUserCardNum__"/>
                    </div>
                    <label class="col-sm-1 control-label" style=" margin-top:5px">快递员手机</label>
                    <div class="col-sm-2">
                        <input type="number" class="form-control" placeholder="请输入快递员手机号" style="" id="courierPhone__" name="courierPhone"/>
                    </div>
                </div>

                <div class="panel-body form-group" style="margin-bottom:0px;">
                    <label class="col-sm-1 control-label" style=" margin-top:5px">快递员身份证</label>
                    <div class="col-sm-2">
                        <input type="number" class="form-control" placeholder="请输入快递员身份证" style="" id="courierIdcard__" name="courierIdcard"/>
                    </div>
                    <label class="col-sm-1 control-label" style=" margin-top:5px">快递员地址</label>
                    <div class="col-sm-2">
                        <input type="number" class="form-control" placeholder="请输入快递员地址" style="" id="courierAdress__" name="courierAdress"/>
                    </div>
                    <div class="col-sm-3" style="text-align: center;margin: auto" >
                        <button class="btn btn-primary"  id="search_btn" style="width: 200px" >查询</button>
                    </div>
                </div>
                <table id="mytab" name="mytab" class="table table-hover"></table>
                <div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">

                    <button id="btn_delete" shiro:hasPermission="courierOrder:batchRemove" onclick="batchRemove()"
                            type="button" class="btn btn-default" style="display: block;">
                        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>批量删除
                    </button>
                    <!--<button id="btn_add" type="button" shiro:hasPermission="courierOrder:add"-->
                            <!--class="btn btn-default" data-toggle="modal" data-target="#webAdd">-->
                        <!--<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增-->
                    <!--</button>-->
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="webAdd" tabindex="-1" role="dialog" aria-labelledby="webAddLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="webAddTitle">
                    新增
                </h4>
            </div>
            <form class="form-horizontal" id="formadd">
                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">读者姓名：</label>
                        <div class="col-sm-8">
                            <input id="readUserName" name="readUserName" type="text" class="form-control" required=""
                                   aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">读者卡号：</label>
                        <div class="col-sm-8">
                            <input id="readUserCardNum" name="readUserCardNum" type="text" class="form-control"
                                   required="" aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">快递员手机号：</label>
                        <div class="col-sm-8">
                            <input id="courierPhone" name="courierPhone" type="text" class="form-control" required=""
                                   aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">快递员身份证号：</label>
                        <div class="col-sm-8">
                            <input id="courierIdcard" name="courierIdcard" type="text" class="form-control" required=""
                                   aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">快递员地址：</label>
                        <div class="col-sm-8">
                            <input id="courierAdress" name="courierAdress" type="text" class="form-control" required=""
                                   aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">申请时间：</label>
                        <div class="col-sm-8">
                            <input id="createTime" name="createTime" type="text" class="form-control" required=""
                                   aria-required="true">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="submit" id="add" class="btn btn-primary">
                        确认新增
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<input type="hidden" value="" id="deleteId"/>
<div class="modal fade" id="updateStatus" tabindex="-1" role="dialog" aria-labelledby="webAddLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    批量修改状态
                </h4>
            </div>
            <form class="form-horizontal" method="post" id="update_status">
                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">状态：</label>
                        <div class="col-sm-8">
                            <select class="form-control" id="status" required name="status">
                                <option value="0">启用</option>
                                <option value="1">停用</option>
                            </select>
                        </div>
                        <input id="statusId" type="hidden" name="manyId"/>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="button" id="updateSta" class="btn btn-primary" data-dismiss="modal">
                        确认修改
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    修改
                </h4>
            </div>
            <form class="form-horizontal" id="updateform">
                <div class="modal-body">
                    <input id="id" name="id" type="hidden">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">读者姓名：</label>
                        <div class="col-sm-8">
                            <input id="readUserName_" name="readUserName" class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">读者卡号：</label>
                        <div class="col-sm-8">
                            <input id="readUserCardNum_" name="readUserCardNum" class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">快递员手机号：</label>
                        <div class="col-sm-8">
                            <input id="courierPhone_" name="courierPhone" class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">快递员身份证号：</label>
                        <div class="col-sm-8">
                            <input id="courierIdcard_" name="courierIdcard" class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">快递员地址：</label>
                        <div class="col-sm-8">
                            <input id="courierAdress_" name="courierAdress" class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">申请时间：</label>
                        <div class="col-sm-8">
                            <input id="createTime_" name="createTime" class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="submit" id="update" class="btn btn-primary">
                        确认修改
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
    <!--shiro控制bootstraptable行内按钮看见性 来自cflworks的创新方案 -->
    <div>
        <script type="text/javascript">
            var s_edit_h = 'hidden';
            var s_remove_h = 'hidden';
            var s_resetPwd_h = 'hidden';
        </script>
    </div>
    <div shiro:hasPermission="cflwork:courierOrder:edit">
        <script type="text/javascript">
            s_edit_h = '';
        </script>
    </div>
    <div shiro:hasPermission="cflwork:courierOrder:remove">
        <script type="text/javascript">
            var s_remove_h = '';
        </script>
    </div>
    <div shiro:hasPermission="cflwork:courierOrder:resetPwd">
        <script type="text/javascript">
            var s_resetPwd_h = '';
        </script>
    </div>
</div>
<div th:include="includes :: footer"></div>
<script src="/js/appjs/courierOrder/courierOrder.js"></script>
<script>
    laydate.render({
        elem: '#test_2'//指定元素，
        ,type: 'date'
        ,range: true
    });
</script>
</body>
</html>
